﻿<%@ Page Title="" Language="C#" MasterPageFile="~/GetQuote.Master" AutoEventWireup="true" CodeBehind="Products.aspx.cs" Inherits="GetQuote.Web.Products" %>

<%@ Register Assembly="DevExpress.Web.ASPxGridView.v12.1, Version=12.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
<%@ Register assembly="DevExpress.Web.ASPxEditors.v12.1, Version=12.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h3>Products</h3>
<div id="box-search">
    <table cellpadding="2">
        <tr>
            <td>
                Keyword:
            </td>
            <td>
                <input id="txtKeyword" type="text" />
            </td>
            <td style="width:100px;">Manufacturer:</td>
            <td>
                <select id="ddlManufactures" style=" width:200px;">
                    <option>-----All Manufacturers-----</option>
                    <option>Hunter Douglas</option>
                    <option>Vista Products</option>
                    <option>Comfortex Window Fashions</option>
                    <option>Graber Blinds</option>
                    <option>Horizons Window Fashions</option>
                </select>
            </td>
            <td style="width:80px;">Category:</td>
            <td>
                <select id="ddlCategories">
                    <option>-----All Categories-----</option>
                    <option>Arches</option>
                    <option>Horizontal Blinds</option>
                    <option>Shades</option>
                    <option>Vertical Blinds</option>
                    <option>Shutters</option>
                </select>
            </td>
            <td>
                <button type="button" class="btn">Search</button>
            </td>
            <td>
                <a href="ProductForm.aspx" class="btn btn-primary">Add Products</a>
            </td>
        </tr>
    </table>
</div>
<div id="products-list">
    <dx:ASPxGridView ID="gridProduct" runat="server" Width="100%" Theme="Office2010Silver" DataSourceID="ProductDataSource">
        <Columns>
            <dx:GridViewDataColumn FieldName="ProductId" VisibleIndex="1" Settings-AllowSort="False" Caption="" Width="90px">
                <HeaderTemplate></HeaderTemplate>
                <DataItemTemplate>
                    <a href="ProductForm.aspx">Edit</a> | 
                    <a href="#" onclick="confirm('Do you really want to delete this product?'); return false;">Delete</a>
                </DataItemTemplate>
            </dx:GridViewDataColumn>
            <dx:GridViewDataColumn FieldName="Name" VisibleIndex="2">
                <DataItemTemplate>
                    <a href="<%# Eval("Link") %>"><%# Eval("Name")%></a>
                </DataItemTemplate>
            </dx:GridViewDataColumn>
            <dx:GridViewDataColumn FieldName="Manufacturer" VisibleIndex="3" />
            <dx:GridViewDataColumn FieldName="Category" VisibleIndex="4" />
            <dx:GridViewDataColumn FieldName="DisplayWH" VisibleIndex="5" Caption="Width x Height" Width="100px"/>
            <dx:GridViewDataColumn FieldName="Price" VisibleIndex="5" Width="100px" />
        </Columns>
        <SettingsBehavior ColumnResizeMode="NextColumn" />
    </dx:ASPxGridView>
    <asp:LinqDataSource ID="ProductDataSource" runat="server" 
        onselecting="ProductDataSource_Selecting">
    </asp:LinqDataSource>
</div>
</asp:Content>
